<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>person</title>
    <link rel="stylesheet" th:href="@{css/person.css}">
</head>
<body>
<div>
    <div>
        <div class="banner">
            <a href="#" class="inf">完善基础信息</a>
            <a href="#" class="mod">修改密码</a>
        </div>
        <div class="infff">
            <form class="personForm" action="/personUpdate">
                <div>
                    <input type="text" class="username" th:value="${admin.username}" name="username" placeholder="用户名">
                </div>
                <div>
                    <input type="text" class="email" th:value="${admin.email}" name="email" placeholder="邮箱">
                </div>
                <div>
                    <input type="text" class="mobile" th:value="${admin.mobile}" name="mobile" placeholder="手机号">
                </div>
                <div>
                    <input type="text" class="realname" th:value="${admin.realname}" name="realname" placeholder="真实姓名">
                </div>
                <div>
                    <input type="text" class="sex" name="sex" th:value="${admin.sex}" placeholder="性别">
                </div>
                <div>
                    <input type="text" class="role" name="roleId" th:value="${admin.roleId}" disabled="disabled" placeholder="角色">
                </div>
                <div>
                    <button type="submit">确定</button>
                </div>
            </form>
        </div>
        <div class="upd" style="display: none">
            <form action="/updatePassword",method="PUT">
                <div>
                    <input type="text" class="oldpassword" name="oldpassword" placeholder="旧密码">
                </div>
                <div>
                    <input type="text" class="newpassword" name="newpassword" placeholder="新密码">
                </div>
                <div>
                    <input type="text" class="check" name="check" placeholder="确定新密码">
                </div>
                <div>
                    <button type="submit">确定</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" th:src="@{jquery-3.5.0.min.js}"></script>
<script type="text/javascript" th:src="@{js/person.js}"></script>
</body>
</html>